package master;

import employee.Employee;

import java.sql.Connection;
import java.sql.SQLException;

public interface EmployeeDao {
    int addEmployee(Connection conn, Employee employee) throws SQLException;
    /*int update(Connection conn, Employee employee) throws SQLException;
    int delete(Connection conn, String id) throws SQLException;
    Employee getByName(Connection conn, String ename) throws SQLException;
    List<Employee> getAll();*/
    Employee findByName(Connection conn, String ename) throws SQLException;
    Employee login(Connection conn, String ename, String password) throws SQLException;
}
